using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Sheep_Breeding.Domain.production_b
{
    /// <summary>
    /// 羊只死亡记录
    /// </summary>
    [Table("sheep_death")]
    public class SheepDeath
    {
        [Key]
        [Column("id")]
        public long Id { get; set; } // 主键

        [Column("death_date")]
        public DateTime DeathDate { get; set; } // 死亡日期

        [Column("sheep_ear_number")]
        [StringLength(50)]
        public string SheepEarNumber { get; set; } // 羊只耳号

        [Column("death_reason")]
        [StringLength(200)]
        public string DeathReason { get; set; } // 死亡原因

        [Column("breed")]
        [StringLength(50)]
        public string? Breed { get; set; } // 品种

        [Column("gender")]
        [StringLength(10)]
        public string? Gender { get; set; } // 性别

        [Column("reproductive_status")]
        [StringLength(20)]
        public string? ReproductiveStatus { get; set; } // 繁殖状态
        [Column("death_month_age")]
        public int? Buildings { get; set; } // 栋舍

     


        [Column("birth_date")]
        public DateTime? BirthDate { get; set; } // 出生日期

        [Column("creator_id")]
        public string? CreatorId { get; set; } // 创建人

        [Column("create_time")]
        public DateTime? CreateTime { get; set; } // 创建时间

        [Column("modifier_id")]
        public string? ModifierId { get; set; } // 修改人

        [Column("modify_time")]
        public DateTime? ModifyTime { get; set; } // 修改时间

        [Column("auditor_id")]
        public string? AuditorId { get; set; } // 审核人

        [Column("audit_time")]
        public DateTime? AuditTime { get; set; } // 审核时间

        [Column("order_number")]
        [StringLength(50)]
        public string? OrderNumber { get; set; } // 单据号

        [Column("remark")]
        [StringLength(500)]
        public string? Remark { get; set; } // 备注
        public bool? IsDeleted { get; set; }
    }
} 